/* 表格容器 */
.markdown-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 25px 0;
	border: 1px solid var(--border-e1e6f0, #d0d7de);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	overflow: hidden;
	background: white;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 表头 */
.markdown-table thead {
	background: linear-gradient(135deg, var(--status-4a6fa5, #2c68a0), #3a7bd5);
	color: white;
}

.markdown-table th {
	border: none;
	position: relative;
	text-align: center;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	font-size: 0.95rem;
	padding: 16px 20px;
	border-right: 1px solid rgba(255, 255, 255, 0.4);
	transition: background 0.3s ease;
}

.markdown-table th:last-child {
	border-right: none;
}

/* 单元格 */
.markdown-table td {
	position: relative;
	text-align: center;
	padding: 15px 20px;
	border: none;
	border-bottom: 1px solid var(--border-e1e6f0, #eaeef2);
	border-right: 1px solid var(--border-e1e6f0, #eaeef2);
	transition: all 0.3s ease;
}

.markdown-table td:last-child {
	border-right: none;
}

.markdown-table tr:last-child td {
	border-bottom: none;
}

/* 交互效果 */
.markdown-table tr:hover td {
	background-color: rgba(70, 130, 180, 0.1);
}

.markdown-table tr:nth-child(even) {
	background-color: rgba(0, 0, 0, 0.02);
}

.markdown-table td:hover {
	background-color: rgba(100, 149, 237, 0.2) !important;
}

/* 表格标题 */
.table-caption {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--text-0f1e0f, #2d3748);
	display: flex;
	align-items: center;
	padding-left: 10px;
}

.table-caption::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 22px;
	background: linear-gradient(to bottom, var(--status-4a6fa5), #4a86e8);
	margin-right: 12px;
	border-radius: 3px;
}

/* 表格页脚 */
.table-footer {
	font-size: 0.9rem;
	color: var(--text-secondary, #718096);
	margin-top: 8px;
	padding-left: 18px;
	font-style: italic;
}

/* 暗黑模式适配 */
.dark-mode .markdown-table {
	background: var(--dark-bg, #1e293b);
	border-color: var(--dark-border, #334155);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.dark-mode .markdown-table thead {
	background: linear-gradient(135deg, var(--dark-primary, #1e3a8a), #2563eb);
}

.dark-mode .markdown-table tr:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.04);
}

.dark-mode .markdown-table td {
	border-bottom: 1px solid var(--dark-border, #334155);
	color: var(--dark-text, #e2e8f0);
	border-right: 1px solid var(--dark-border, #334155);
}

.dark-mode .markdown-table th {
	border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .markdown-table tr:hover td {
	background-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .markdown-table td:hover {
	background-color: rgba(255, 255, 255, 0.12) !important;
}

.dark-mode .table-caption {
	color: var(--dark-text, #e2e8f0);
}